home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-06 | 1.4 KB | 45 lines | [TEXT/CWIE] |
- //========================================================================
- // Application: QTICSampleApp
- //
- // Description: This application demonstrates the integration of
- // QuickTime™ IC functionality.
- //
- // Author: Mike Bitz
- // Developer Technical Support
- // Apple Computer, Inc.
- //
- // History: 25-Apr-97 original development (mwb)
- //
- // Copyright © 1997 Apple Computer, Inc., All Rights Reserved
- //
- // You may incorporate this sample code into your applications without
- // restriction, though the sample code has been provided "AS IS" and the
- // responsibility for its operation is 100% yours. However, what you are
- // not permitted to do is to redistribute the source as "DSC Sample Code"
- // after having made changes. If you're going to re-distribute the source,
- // we require that you make it clear in the source that the code was
- // descended from Apple Sample Code, but that you've made changes.
- //========================================================================
-
- #include "prototypes.h"
- #include "application.h"
-
- //================= HandleMyAboutBox =================
- void HandleMyAboutBox(void)
- {
- ModalFilterUPP theProc ;
- DialogPtr theDialog ;
- short itemHit ;
-
- theDialog = GetNewDialog (kBaseResID, nil, (WindowPtr)-1);
-
- GetStdFilterProc (&theProc);
- SetDialogDefaultItem (theDialog, ok);
-
- do
- {
- ModalDialog (theProc, &itemHit);
- } while (itemHit != ok) ;
-
- DisposDialog (theDialog);
- }